package trlygjj.tanruiliyigenjinjin.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 缴费名细
 */

@Getter
@Setter
public class TuitionDetail {

    /**
     * 审核中
     */
    public static final int  STATE_UNDER = 0;
    /**
     * 审核通过
     */
    public static final int  STATE_PUSS = 1;

    private Long id;
    /**
     * 缴费对象
     */
    private Tuition tuition;
    /**
     * 缴费对象
     */
    private ProfessionalStuent professionalstuent;
    /**
     * 缴费人班级
     */
    private  Grade grade;
    /**
     * 缴费日期
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date billdate;
    /**
     * 收款人
     */
    private Employee collectionsuser;
    /**
     * 缴费类型
     */
    private DataDictionaryItem datadictionaryitem;
    /**
     * 缴费金额
     */
    private BigDecimal amountcollected;
    /**
     * 单据号
     */
    private String receipts;
    /**
     * 备注
     */
    private String remark;
    /**
     * 销售人
     */
    private Employee market;
    /**
     * 未交金额
     */
    private BigDecimal unpaidamount;
    /**
     * 状态
     */
    private Integer state =STATE_UNDER;


}